package com.amethyst.web.controller;

import com.amethyst.model.Teacher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Amethyst
 * @date 2023/3/17 09:23
 */
@RestController
public class TeacherController {

    @GetMapping("/teacher")
    public Teacher getTeacher() {
        Teacher teacher = new Teacher();
        teacher.setId(1L).setName("Teacher Wang");
        return teacher;
    }
}
